ifeq ($(TOP_DIR),) 
KERNEL_DIR :=$(srctree)
EXTRA_CFLAGS += -I$(PWD)/driver/src/kernel/PCA6416
EXTRA_CFLAGS += -I$(PWD)/drivers/dev_inc

ifeq ($(TARGET_PRODUCT), mini)
EXTRA_CFLAGS += -DUSE_MINI_PLATFORM -DENV_SMMU_SUPPORT -DDVPP_WAKELOCK
endif

obj-m   += drv_pca6416.o
drv_pca6416-objs := PCA6416.o
else
EXTRA_CFLAGS += -I$(TOP_DIR)/driver/src/kernel/PCA6416
EXTRA_CFLAGS += -I$(TOP_DIR)/drivers/dev_inc

ifneq ($(findstring $(PRODUCT),  ascend310 ascend310rc ascend610 ascend710),)
EXTRA_CFLAGS += -DUSE_MINI_PLATFORM -DENV_SMMU_SUPPORT -DDVPP_WAKELOCK
endif

obj-m   += drv_pca6416.o
drv_pca6416-objs := PCA6416.o
endif